#include<stdio.h>
int main()
{
	int sum, n;
	n = 1, sum = 0;
	while (sum <= 500)
	{
		sum += n * n;
		n++;
	}
	printf("%d", n - 2);
	return 0;
}